package com.bamboo.eduservice.feign.fallback;

import com.bamboo.commonutils.ResponseEntity;
import com.bamboo.eduservice.feign.VodFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 熔断处理类
 *
 * @author jack.wu
 * @version 1.0
 * @date 2020-07-11
 */
@Slf4j
@Component
public class VodFeignClientFallback implements VodFeignClient {

    @Override
    public ResponseEntity deleteAlyVideo(String videoSourceId) {
        return ResponseEntity.error().data("msg", "远程调用Vod服务失败");
    }
}
